﻿using NHibernate.Tool.hbm2ddl;

namespace Inovout.Repositories
{
    public class DatabaseInstaller
    {
        public void InstallSchem()
        {
            //NHibernate.Cfg.Configuration configuration = ComponentRegistry .Resolve<NHibernate.Cfg.Configuration>(repositoryConfigurationKeyDictionary.GetDatabaseName(dataObjectType) + ".cfg");
            //SchemaExport schemaExport = new SchemaExport(configuration);
            //schemaExport.Execute(false, true,true);

            InstallInitializedData();
        }
        public void UpdateSchem()
        {
            //NHibernate.Cfg.Configuration configuration = Container.Resolve<NHibernate.Cfg.Configuration>(repositoryConfigurationKeyDictionary.GetDatabaseName(dataObjectType) + ".cfg");
            //SchemaUpdate schemaUpdate = new SchemaUpdate(configuration);
            //schemaUpdate.Execute(false, true);
        }
        public void InstallInitializedData()
        {
        }
    }
}
